<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Docs For Class QueryPath</title>
	<link rel="stylesheet" type="text/css" href="../media/style.css">
	<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
	<script src="media/a.js"></script>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
	<td class="header-top-left"><img src="../media/logo.png" border="0" alt="phpDocumentor " /></td>
    <td class="header-top-right">QueryPath<br /><div class="header-top-right-subpackage"></div></td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td colspan="2" class="header-menu">
      
                        
                                                  		[ <a href="../classtrees_QueryPath.html" class="menu">class tree: QueryPath</a> ]
		[ <a href="../elementindex_QueryPath.html" class="menu">index: QueryPath</a> ]
            [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="195" class="menu">
		<div class="package-title">QueryPath</div>
  <div class="package">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
	</div>
      <b>Packages:</b><br />
  <div class="package">
              <a href="../li_QueryPath.html">QueryPath</a><br />
              <a href="../li_Examples.html">Examples</a><br />
              <a href="../li_Tests.html">Tests</a><br />
      	</div>
      <br />
		<b>Tutorials/Manuals:</b><br />
  <div class="package">
					<strong>Package-level:</strong>
							<ul>
	<li type="square"><a href="../QueryPath/tutorial_QueryPath.pkg.html">Using QueryPath</a>
</ul>

									                        <b>Files:</b><br />
        <div class="package">
				<span style="padding-left: 1em;"><a href="../QueryPath/_src---QueryPath---QueryPath.php.html">QueryPath.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../QueryPath/_src---QueryPath---QueryPathExtension.php.html">QueryPathExtension.php</a></span><br />
	  </div>
  <div class="package">
	<strong>CSSParser</strong><br />			<span style="padding-left: 1em;"><a href="../QueryPath/CSSParser/_src---QueryPath---CssEventHandler.php.html">CssEventHandler.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../QueryPath/CSSParser/_src---QueryPath---CssParser.php.html">CssParser.php</a></span><br />
	  </div>
  <div class="package">
	<strong>Extension</strong><br />			<span style="padding-left: 1em;"><a href="../QueryPath/Extension/_src---QueryPath---Extension---QPDB.php.html">QPDB.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../QueryPath/Extension/_src---QueryPath---Extension---QPList.php.html">QPList.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../QueryPath/Extension/_src---QueryPath---Extension---QPTPL.php.html">QPTPL.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../QueryPath/Extension/_src---QueryPath---Extension---QPXML.php.html">QPXML.php</a></span><br />
	  </div>
  <div class="package">
	<strong>Internals</strong><br />			<span style="padding-left: 1em;"><a href="../QueryPath/Internals/_src---QueryPath---QueryPathImpl.php.html">QueryPathImpl.php</a></span><br />
	  </div>
            <br />
            <b>Interfaces:</b><br />
        <div class="package">
	CSSParser<br />	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/CssEventHandler.html">CssEventHandler</a>    </span>	 <br />
	  </div>
  <div class="package">
	Extension<br />	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/TableAble.html">TableAble</a>    </span>	 <br />
	  </div>
  <div class="package">
		    		<a href="../QueryPath/QueryPath.html">QueryPath</a>    	 <br />
	    		<a href="../QueryPath/QueryPathExtension.html">QueryPathExtension</a>    	 <br />
	  </div>
                  <b>Classes:</b><br />
        <div class="package">
	CSSParser<br />	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/CssInputStream.html">CssInputStream</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/CSSParseException.html">CSSParseException</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/CssParser.html">CssParser</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/CssScanner.html">CssScanner</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/CssToken.html">CssToken</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/NamespaceMap.html">NamespaceMap</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/NegationCssEventHandler.html">NegationCssEventHandler</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/NotImplementedException.html">NotImplementedException</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/QueryPathCssEventHandler.html">QueryPathCssEventHandler</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/CSSParser/UniqueElementList.html">UniqueElementList</a>    </span>	 <br />
	  </div>
  <div class="package">
	Extension<br />	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/QPDB.html">QPDB</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/QPList.html">QPList</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/QPTableData.html">QPTableData</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/QPTableTextData.html">QPTableTextData</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/QPTPL.html">QPTPL</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/Extension/QPXML.html">QPXML</a>    </span>	 <br />
	  </div>
  <div class="package">
		    		<a href="../QueryPath/QueryPathException.html">QueryPathException</a>    	 <br />
	    		<a href="../QueryPath/QueryPathExtensionRegistry.html">QueryPathExtensionRegistry</a>    	 <br />
	  </div>
  <div class="package">
	Internals<br />	    <span style="padding-left: 1em;">		<a href="../QueryPath/Internals/QueryPathImpl.html">QueryPathImpl</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../QueryPath/Internals/QueryPathIterator.html">QueryPathIterator</a>    </span>	 <br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Interface: QueryPath</h1>
Source Location: /src/QueryPath/QueryPath.php<br /><br />

<h2 class="class-name">Interface QueryPath</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Interface Overview</div>
	<div class="nav-bar">
					<span class="disabled">Interface Overview</span>
						
													| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
														| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
						</div>
	<div class="info-box-body">
		<table width="100%" border="0">
		<tr><td valign="top" width="60%" class="class-overview">

        		<p align="center" class="short-description"><strong>The Query Path object is the primary tool in this library.
</strong></p>
<span class="description"><p>To create a new Query Path, use the <a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp()</a> function.</p><p>If you are new to these documents, start at the <a href="../QueryPath/_src---QueryPath---QueryPath.php.html">QueryPath.php</a> page.  There you will find a quick guide to the tools contained in this project.</p><p>A note on serialization: QueryPath uses DOM classes internally, and those  do not serialize well at all. In addition, QueryPath may contain many  extensions, and there is no guarantee that extensions can serialize. The  moral of the story: Don't serialize QueryPath.</p></span>
		<p class="notes">
			Located in <a class="field" href="_src---QueryPath---QueryPath.php.html">/src/QueryPath/QueryPath.php</a> [<span class="field">line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a167">167</a></span>]
		</p>

		
		<pre></pre>

		
				<strong>Author(s):</strong>
		<ul>
		  			 		  			 		  		</ul>
		
		<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/_src---QueryPath---QueryPath.php.html">QueryPath.php</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp()</a></td>
  </tr>
</table>
<br />

		</td>

		
				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p>
		<ul>
		  		  <li><a href="../QueryPath/QueryPath.html#methodadd">add</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodaddClass">addClass</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodafter">after</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodandSelf">andSelf</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodappend">append</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodappendTo">appendTo</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodattr">attr</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodbefore">before</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodbranch">branch</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodchildren">children</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodcloneAll">cloneAll</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodcontents">contents</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodcss">css</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methoddeepest">deepest</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodeach">each</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodeachLambda">eachLambda</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodend">end</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodeq">eq</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodfilter">filter</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodfilterCallback">filterCallback</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodfilterLambda">filterLambda</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodfind">find</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodget">get</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodhasClass">hasClass</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodhtml">html</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodindex">index</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodinsertAfter">insertAfter</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodinsertBefore">insertBefore</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodis">is</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodmap">map</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodnext">next</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodnextAll">nextAll</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodnot">not</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodparent">parent</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodparents">parents</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodprepend">prepend</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodprependTo">prependTo</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodprev">prev</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodprevAll">prevAll</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodremove">remove</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodremoveAttr">removeAttr</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodremoveChildren">removeChildren</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodremoveClass">removeClass</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodreplaceAll">replaceAll</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodreplaceWith">replaceWith</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodsiblings">siblings</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodsize">size</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodslice">slice</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodtag">tag</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodtext">text</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodtop">top</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodval">val</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodwrap">wrap</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodwrapAll">wrapAll</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodwrapInner">wrapInner</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodwriteHTML">writeHTML</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodwriteXML">writeXML</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodxml">xml</a></li>
		  		  <li><a href="../QueryPath/QueryPath.html#methodxpath">xpath</a></li>
		  		</ul>
		</td>
		
		</tr></table>
		<div class="top">[ <a href="#top">Top</a> ]</div>
	</div>
</div>



	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
									| <span class="disabled">Constants Summary</span> | <a href="#sec-consts">Constants Detail</a>
															| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
									</div>
		<div class="info-box-body">
			<div class="const-summary">
			<table border="0" cellspacing="0" cellpadding="0" class="var-summary">
							<div class="var-title">
					<tr>
					<td class="var-title"><a href="#constHTML_STUB" title="details" class="const-name-summary">HTML_STUB</a>&nbsp;&nbsp;</td>
					<td class="const-summary-description">This is a stub HTML document.</td></tr>
				</div>
								</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
									    		    			    				| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
    			    					| <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a>
		</div>
		<div class="info-box-body">
			<div class="method-summary">
				<table border="0" cellspacing="0" cellpadding="0" class="method-summary">
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#add" title="details" class="method-name">add</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Add more elements to the current set of matches.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#addClass" title="details" class="method-name">addClass</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Add a class to all elements in the current QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#after" title="details" class="method-name">after</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Insert the given data after each element in the current QueryPath object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#andSelf" title="details" class="method-name">andSelf</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Combine the current and previous set of matched objects.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#append" title="details" class="method-name">append</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Insert the given markup as the last child.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#appendTo" title="details" class="method-name">appendTo</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Append the current elements to the destination passed into the function.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#attr" title="details" class="method-name">attr</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get/set an attribute.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#before" title="details" class="method-name">before</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Insert the given data before each element in the current set of matches.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#branch" title="details" class="method-name">branch</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Branch the base QueryPath into another one with the same matches.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#children" title="details" class="method-name">children</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get the children of the elements in the QueryPath object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#cloneAll" title="details" class="method-name">cloneAll</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Perform a deep clone of each node in the QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#contents" title="details" class="method-name">contents</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get all child nodes (not just elements) of all items in the matched set.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#css" title="details" class="method-name">css</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Set/get a CSS value for the current element(s).</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#deepest" title="details" class="method-name">deepest</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Reduce the set of matches to the deepest child node in the tree.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#each" title="details" class="method-name">each</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Run a callback on each item in the list of items.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#eachLambda" title="details" class="method-name">eachLambda</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">An each() iterator that takes a lambda function.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#end" title="details" class="method-name">end</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Revert to the previous set of matches.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#eq" title="details" class="method-name">eq</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Reduce the matched set to just one.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#filter" title="details" class="method-name">filter</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Filter a list down to only elements that match the selector.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#filterCallback" title="details" class="method-name">filterCallback</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Filter based on a callback function.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#filterLambda" title="details" class="method-name">filterLambda</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Filter based on a lambda function.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#find" title="details" class="method-name">find</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Given a CSS Selector, find matching items.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#get" title="details" class="method-name">get</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get one or all elements from this object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">boolean</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#hasClass" title="details" class="method-name">hasClass</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Returns TRUE if any of the elements in the QueryPath have the specified class.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#html" title="details" class="method-name">html</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Set or get the markup for an element.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#index" title="details" class="method-name">index</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get an item's index.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#insertAfter" title="details" class="method-name">insertAfter</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Insert the contents of the current QueryPath after the nodes in the  destination QueryPath object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#insertBefore" title="details" class="method-name">insertBefore</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Insert the current elements into the destination document.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">boolean</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#is" title="details" class="method-name">is</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Given a selector, this checks to see if the current set has one or more matches.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#map" title="details" class="method-name">map</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Run a function on each item in a set.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#next" title="details" class="method-name">next</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get the next sibling of each element in the QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#nextAll" title="details" class="method-name">nextAll</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get all siblings after an element.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#not" title="details" class="method-name">not</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Filter a list to contain only items that do NOT match.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#parent" title="details" class="method-name">parent</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get the immediate parent of each element in the QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#parents" title="details" class="method-name">parents</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get all ancestors of each element in the QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#prepend" title="details" class="method-name">prepend</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Insert the given markup as the first child.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#prependTo" title="details" class="method-name">prependTo</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Take all nodes in the current object and prepend them to the children nodes of  each matched node in the passed-in QueryPath object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#prev" title="details" class="method-name">prev</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get the next sibling before each element in the QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#prevAll" title="details" class="method-name">prevAll</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get the previous siblings for each element in the QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#remove" title="details" class="method-name">remove</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Remove any items from the list if they match the selector.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#removeAttr" title="details" class="method-name">removeAttr</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Remove the named attribute from all elements in the current QueryPath.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#removeChildren" title="details" class="method-name">removeChildren</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Remove all child nodes.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#removeClass" title="details" class="method-name">removeClass</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Remove the named class from any element in the QueryPath that has it.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#replaceAll" title="details" class="method-name">replaceAll</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">This replaces everything that matches the selector with the first value  in the current list.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#replaceWith" title="details" class="method-name">replaceWith</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Replace the existing element(s) in the list with a new one.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#siblings" title="details" class="method-name">siblings</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get a list of siblings for elements currently wrapped by this object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">int</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#size" title="details" class="method-name">size</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get the number of elements currently wrapped by this object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#slice" title="details" class="method-name">slice</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Narrow the items in this object down to only a slice of the starting items.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">string</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#tag" title="details" class="method-name">tag</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">The tag name of the first element in the list.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#text" title="details" class="method-name">text</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Get or set the text contents of a node.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#top" title="details" class="method-name">top</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Select the root element of the document.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#val" title="details" class="method-name">val</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Set or get the value of an element's 'value' attribute.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#wrap" title="details" class="method-name">wrap</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Wrap each element inside of the given markup.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#wrapAll" title="details" class="method-name">wrapAll</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Wrap all elements inside of the given markup.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#wrapInner" title="details" class="method-name">wrapInner</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Wrap the child elements of each item in the list with the given markup.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#writeHTML" title="details" class="method-name">writeHTML</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Send the HTML to the client.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#writeXML" title="details" class="method-name">writeXML</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Send the XML document to the client.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">mixed</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#xml" title="details" class="method-name">xml</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Set or get the XML markup for an element or elements.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#xpath" title="details" class="method-name">xpath</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Execute an XPath query and store the results in the QueryPath.</td></tr>
				</div>
												</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>


	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
																					| <a href="#sec-const-summary">Constants Summary</a> | <a href="#sec-consts">Constants Detail</a>
														| <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span>
					</div>
		<div class="info-box-body">
			<a name='method_detail'></a>

<a name="methodadd" id="add"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">add</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a867">867</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> add(
string
$selector&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Add more elements to the current set of matches.
</strong></p>
<span class="description"><p>This begins the new query at the top of the DOM again. The results found  when running this selector are then merged into the existing results. In  this way, you can add additional elements to the existing set.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with the newly added elements.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodend">QueryPath::end()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodandSelf">QueryPath::andSelf()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodafter">QueryPath::after()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodaddClass" id="addClass"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">addClass</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1258">1258</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> addClass(
string
$class&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Add a class to all elements in the current QueryPath.
</strong></p>
<span class="description"><p>This searchers for a class attribute on each item wrapped by the current  QueryPath object. If no attribute is found, a new one is added and its value  is set to $class. If a class attribute is found, then the value is appended  on to the end.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$class:&nbsp;</span></td>
				<td>
				<span class="var-description"> The name of the class.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Returns the QueryPath object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodhasClass">QueryPath::hasClass()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcss">QueryPath::css()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremoveClass">QueryPath::removeClass()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodattr">QueryPath::attr()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodafter" id="after"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">after</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a645">645</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> after(
mixed
$data&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Insert the given data after each element in the current QueryPath object.
</strong></p>
<span class="description"><p>This inserts the element as a peer to the currently matched elements.  Contrast this with <a href="../QueryPath/QueryPath.html#methodappend">append()</a>, which inserts the data as children  of matched elements.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$data:&nbsp;</span></td>
				<td>
				<span class="var-description"> The data to be appended.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object (with the items inserted).</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodbefore">QueryPath::before()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodandSelf" id="andSelf"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">andSelf</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a919">919</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> andSelf(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Combine the current and previous set of matched objects.
</strong></p>
<span class="description"><p>Example:  <ol><li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id">document</span><span class="src-sym">,&nbsp;</span><span class="src-str">'p'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">'div'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodandSelf">andSelf</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol>  The code above will contain a list of all p elements and all div elements that  are beneath p elements.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object with the results of the last two &quot;destructive&quot; operations.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodend">QueryPath::end()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodadd">QueryPath::add()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td>end();</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodappend" id="append"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">append</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a597">597</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> append(
mixed
$data&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Insert the given markup as the last child.
</strong></p>
<span class="description"><p>The markup will be inserted into each match in the set.</p><p>The same element cannot be inserted multiple times into a document. DOM  documents do not allow a single object to be inserted multiple times  into the DOM. To insert the same XML repeatedly, we must first clone  the object. This has one practical implication: Once you have inserted  an element into the object, you cannot further manipulate the original  element and expect the changes to be replciated in the appended object.  (They are not the same -- there is no shared reference.) Instead, you  will need to retrieve the appended object and operate on that.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$data:&nbsp;</span></td>
				<td>
				<span class="var-description"> This can be either a string (the usual case), or a DOM Element.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappendTo">QueryPath::appendTo()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprepend">QueryPath::prepend()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodappendTo" id="appendTo"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">appendTo</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a615">615</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> appendTo(
<a href="../QueryPath/QueryPath.html">QueryPath</a>
$destination&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Append the current elements to the destination passed into the function.
</strong></p>
<span class="description"><p>This cycles through all of the current matches and appends them to  the context given in $destination. If a selector is provided then the  $destination is queried (using that selector) prior to the data being  appended. The data is then appended to the found items.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$destination:&nbsp;</span></td>
				<td>
				<span class="var-description"> A QueryPath object that will be appended to.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The original QueryPath, unaltered. Only the destination QueryPath will   be modified.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprependTo">QueryPath::prependTo()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodattr" id="attr"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">attr</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a363">363</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed attr(
mixed
$name, [string
$value = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get/set an attribute.
</strong></p>
<span class="description"><p><ul><li>If both name and value are set, then this will set the attribute name/value
   pair for all items in this object.</li><li>If name is set, and is an array, then
   all attributes in the array will be set for all items in this object.</li><li>If name is a string and is set, then the attribute value will be returned.</li></ul>  When an attribute value is retrieved, only the attribute value of the FIRST  match is returned.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$name:&nbsp;</span></td>
				<td>
				<span class="var-description"> The name of the attribute or an associative array of name/value pairs.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$value:&nbsp;</span></td>
				<td>
				<span class="var-description"> A value (used only when setting an individual property).</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>If this was a setter request, return the QueryPath object. If this was    an access request (getter), return the string value.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremoveAttr">QueryPath::removeAttr()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodtag">QueryPath::tag()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodbefore" id="before"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">before</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a675">675</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> before(
mixed
$data&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Insert the given data before each element in the current set of matches.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$data:&nbsp;</span></td>
				<td>
				<span class="var-description"> The data to be inserted. This can be XML in a string, a DomFragment, a DOMElement,   or the other usual suspects. (See <a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp()</a>).</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Returns the QueryPath with the new modifications. The list of elements currently   selected will remain the same.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprepend">QueryPath::prepend()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodinsertBefore">QueryPath::insertBefore()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodafter">QueryPath::after()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodbranch" id="branch"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">branch</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1379">1379</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> branch(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Branch the base QueryPath into another one with the same matches.
</strong></p>
<span class="description"><p>This function makes a copy of the QueryPath object, but keeps the new copy  (initially) pointed at the same matches. This object can then be queried without  changing the original QueryPath. However, changes to the elements inside of this  QueryPath will show up in the QueryPath from which it is branched.</p><p>Compare this operation with <a href="../QueryPath/QueryPath.html#methodcloneAll">cloneAll()</a>. The cloneAll() call takes  the current QueryPath object and makes a copy of all of its matches. You continue  to operate on the same QueryPath object, but the elements inside of the QueryPath  are copies of those before the call to cloneAll().</p><p>This, on the other hand, copies <em>the QueryPath</em>, but keeps valid  references to the document and the wrapped elements. A new query branch is  created, but any changes will be written back to the same document.</p><p>In practice, this comes in handy when you want to do multiple queries on a part  of the document, but then return to a previous set of matches. (see <a href="../QueryPath/Extension/QPTPL.html">QPTPL</a>  for examples of this in practice).</p><p>Example:  <ol><li><div class="src-line">&nbsp;<span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$qp&nbsp;</span>=&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id"><a href="../QueryPath/QueryPath.html">QueryPath</a></span><span class="src-sym">::</span><span class="src-id">HTML_STUB</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$branch&nbsp;</span>=&nbsp;<span class="src-var">$qp</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodbranch">branch</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$branch</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">'title'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodtext">text</a><span class="src-sym">(</span><span class="src-str">'Title'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$qp</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">'body'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodtext">text</a><span class="src-sym">(</span><span class="src-str">'This&nbsp;is&nbsp;the&nbsp;body'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodwriteHTML">writeHTML</a><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-php">?&gt;</span></div></li>
</ol>  Notice that in the code, each of the QueryPath objects is doing its own  query. However, both are modifying the same document. The result of the above  would look something like this:  <ol><li><div class="src-line">&nbsp;&lt;<span class="src-sym">!</span><span class="src-id">DOCTYPE&nbsp;</span><a href="../QueryPath/QueryPath.html#methodhtml">html</a>&nbsp;<span class="src-key">PUBLIC&nbsp;</span><span class="src-str">&quot;-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Strict//EN&quot;&nbsp;&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&lt;<a href="../QueryPath/QueryPath.html#methodhtml">html</a>&nbsp;<span class="src-id">xmlns</span>=<span class="src-str">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&lt;<span class="src-id">head</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&lt;<span class="src-id">meta&nbsp;http</span>-<span class="src-id">equiv</span>=<span class="src-str">&quot;Content-Type&quot;&nbsp;</span><span class="src-id">content</span>=<span class="src-str">&quot;text/html;&nbsp;charset=utf-8&quot;</span>&gt;&lt;/<span class="src-id">meta</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&lt;<span class="src-id">title</span>&gt;<span class="src-id">Title</span>&lt;/<span class="src-id">title</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&lt;/<span class="src-id">head</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&lt;<span class="src-id">body</span>&gt;<span class="src-id">This&nbsp;</span><a href="../QueryPath/QueryPath.html#methodis">is</a>&nbsp;<span class="src-id">the&nbsp;body</span>&lt;/<span class="src-id">body</span>&gt;</div></li>
<li><div class="src-line">&nbsp;&lt;/<a href="../QueryPath/QueryPath.html#methodhtml">html</a>&gt;</div></li>
</ol></p><p>Notice that while $qp and $banch were performing separate queries, they  both modified the same document.</p><p>In jQuery or a browser-based solution, you generally do not need a branching  function because there is (implicitly) only one document. In QueryPath, there  is no implicit document. Every document must be explicitly specified (and,  in most cases, parsed -- which is costly). Branching makes it possible to  work on one document with multiple QueryPath objects.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A copy of the QueryPath object that points to the same set of elements that   the original QueryPath was pointing to.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcloneAll">QueryPath::cloneAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />

<strong>Information Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Since:</strong>&nbsp;&nbsp;</td><td>1.1</td>
  </tr>
</table>

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodchildren" id="children"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">children</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a951">951</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> children(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get the children of the elements in the QueryPath object.
</strong></p>
<span class="description"><p>If a selector is provided, the list of children will be filtered through  the selector.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath wrapping all of the children.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprev">QueryPath::prev()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodnext">QueryPath::next()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparents">QueryPath::parents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremoveChildren">QueryPath::removeChildren()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparent">QueryPath::parent()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcloneAll" id="cloneAll"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">cloneAll</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1318">1318</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> cloneAll(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Perform a deep clone of each node in the QueryPath.
</strong></p>
<span class="description"><p>This does not clone the QueryPath object, but instead clones the  list of nodes wrapped by the QueryPath. Every element is deeply  cloned.</p><p>This method is analogous to jQuery's clone() method.</p><p>This is a destructive operation, which means that end() will revert  the list back to the clone's original.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcontents" id="contents"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">contents</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a969">969</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> contents(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get all child nodes (not just elements) of all items in the matched set.
</strong></p>
<span class="description"><p>It gets only the immediate children, not all nodes in the subtree.</p><p>This does not process iframes. Xinclude processing is dependent on the  DOM implementation and configuration.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object wrapping all child nodes for all elements in the   QueryPath object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodxml">QueryPath::xml()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfind">QueryPath::find()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodhtml">QueryPath::html()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodtext">QueryPath::text()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcss" id="css"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">css</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1240">1240</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> css(
[mixed
$name = NULL], [
$value = '']&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Set/get a CSS value for the current element(s).
</strong></p>
<span class="description"><p>This sets the CSS value for each element in the QueryPath object.  It does this by setting (or getting) the style attribute (without a namespace).</p><p>For example, consider this code:  <ol><li><div class="src-line">&nbsp;<span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id"><a href="../QueryPath/QueryPath.html#constHTML_STUB">HTML_STUB</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'body'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodcss">css</a><span class="src-sym">(</span><span class="src-str">'background-color'</span><span class="src-sym">,</span><span class="src-str">'red'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodhtml">html</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-php">?&gt;</span></div></li>
</ol>  This will return the following HTML:  <ol><li><div class="src-line">&nbsp;&lt;<span class="src-id">body&nbsp;style</span>=<span class="src-str">&quot;background-color:&nbsp;red&quot;</span>/&gt;</div></li>
</ol></p><p>If no parameters are passed into this function, then the current style  element will be returned unparsed. Example:  <ol><li><div class="src-line">&nbsp;<span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id"><a href="../QueryPath/QueryPath.html#constHTML_STUB">HTML_STUB</a></span><span class="src-sym">,&nbsp;</span><span class="src-str">'body'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodcss">css</a><span class="src-sym">(</span><span class="src-str">'background-color'</span><span class="src-sym">,</span><span class="src-str">'red'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodcss">css</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-php">?&gt;</span></div></li>
</ol>  This will return the following:  <ol><li><div class="src-line">&nbsp;<span class="src-id">background</span>-<span class="src-id">color</span>:&nbsp;<span class="src-id">red</span></div></li>
</ol></p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$name:&nbsp;</span></td>
				<td>
				<span class="var-description"> If this is a string, it will be used as a CSS name. If it is an array,   this will assume it is an array of name/value pairs of CSS rules. It will   apply all rules to all elements in the set.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$value:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methoddeepest" id="deepest"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">deepest</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a726">726</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> deepest(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Reduce the set of matches to the deepest child node in the tree.
</strong></p>
<span class="description"><p>This loops through the matches and looks for the deepest child node of all of  the matches. &quot;Deepest&quot;, here, is relative to the nodes in the list. It is  calculated as the distance from the starting node to the most distant child  node. In other words, it is not necessarily the farthest node from the root  element, but the farthest note from the matched element.</p><p>In the case where there are multiple nodes at the same depth, all of the  nodes at that depth will be included.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath wrapping the single deepest node.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodeach" id="each"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">each</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a560">560</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> each(
callback
$callback&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Run a callback on each item in the list of items.
</strong></p>
<span class="description"><p>Rules of the callback: <ul></ul><ul></ul><ul><li>A callback that returns FALSE will stop execution of the each() loop. This
   works like break in a standard loop.</li><li>A TRUE return value from the callback is analogous to a continue statement.</li><li>All other return values are ignored.</li></ul></p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">callback</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$callback:&nbsp;</span></td>
				<td>
				<span class="var-description"> The callback to run.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodmap">QueryPath::map()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilter">QueryPath::filter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodeachLambda">QueryPath::eachLambda()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodeachLambda" id="eachLambda"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">eachLambda</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a574">574</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> eachLambda(
string
$lambda&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>An each() iterator that takes a lambda function.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$lambda:&nbsp;</span></td>
				<td>
				<span class="var-description"> The lambda function. This will be passed ($index, &amp;$item).</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodmap">QueryPath::map()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodeach">QueryPath::each()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilterCallback">QueryPath::filterCallback()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilterLambda">QueryPath::filterLambda()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodend" id="end"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">end</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a901">901</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> end(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Revert to the previous set of matches.
</strong></p>
<span class="description"><p>This will revert back to the last set of matches (before the last  &quot;destructive&quot; set of operations). This undoes any change made to the set of  matched objects. Functions like {@see find()} and {@see filter()} change the  list of matched objects. The end() function will revert back to the last set of  matched items.</p><p>Note that functions that modify the document, but do not change the list of  matched objects, are not &quot;destructive&quot;. Thus, calling append('something')-&gt;end()  will not undo the append() call.</p><p>Only one level of changes is stored. Reverting beyond that will result in  an empty set of matches. Example:  <ol><li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;The&nbsp;line&nbsp;below&nbsp;returns&nbsp;the&nbsp;same&nbsp;thing&nbsp;as&nbsp;qp(document,&nbsp;'p');</span></div></li>
<li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id">document</span><span class="src-sym">,&nbsp;</span><span class="src-str">'p'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">'div'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodend">end</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;This&nbsp;returns&nbsp;an&nbsp;empty&nbsp;array:</span></div></li>
<li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id">document</span><span class="src-sym">,&nbsp;</span><span class="src-str">'p'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodend">end</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;This&nbsp;returns&nbsp;an&nbsp;empty&nbsp;array:</span></div></li>
<li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id">document</span><span class="src-sym">,&nbsp;</span><span class="src-str">'p'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">'div'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">'span'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodend">end</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodend">end</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></p><p>The last one returns an empty array because only one level of changes is stored.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object reflecting the list of matches prior to the last destructive   operation.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodandSelf">QueryPath::andSelf()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodadd">QueryPath::add()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodeq" id="eq"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">eq</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a340">340</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> eq(
$index
$index&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Reduce the matched set to just one.
</strong></p>
<span class="description"><p>This will take a matched set and reduce it to just one item -- the item  at the index specified. This is a destructive operation, and can be undone  with <a href="../QueryPath/QueryPath.html#methodend">end()</a>.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">$index</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$index:&nbsp;</span></td>
				<td>
				<span class="var-description"> The index of the element to keep. The rest will be   discarded.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodend">QueryPath::end()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodis">QueryPath::is()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodget">QueryPath::get()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodfilter" id="filter"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">filter</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a410">410</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> filter(
string
$selector&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Filter a list down to only elements that match the selector.
</strong></p>
<span class="description"><p>Use this, for example, to find all elements with a class, or with  certain children.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> The selector to use as a filter.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath with non-matching items filtered out.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodis">QueryPath::is()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfind">QueryPath::find()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodmap">QueryPath::map()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilterLambda">QueryPath::filterLambda()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilterCallback">QueryPath::filterCallback()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodfilterCallback" id="filterCallback"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">filterCallback</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a464">464</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> filterCallback(
$callback.
$callback&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Filter based on a callback function.
</strong></p>
<span class="description"><p>A callback may be any of the following: <ul><li>a function: 'my_func'.</li><li>an object/method combo: $obj, 'myMethod'</li><li>a class/method combo: 'MyClass', 'myMethod'</li></ul> Note that classes are passed in strings. Objects are not.</p><p>Each callback is passed to arguments: <ul><li>$index: The index position of the object in the array.</li><li>$item: The item to be operated upon.</li></ul></p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">$callback.</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$callback:&nbsp;</span></td>
				<td>
				<span class="var-description"> A callback either as a string (function) or an array (object, method OR    classname, method).</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Query path object augmented according to the function.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfind">QueryPath::find()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodis">QueryPath::is()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodmap">QueryPath::map()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilter">QueryPath::filter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilterLambda">QueryPath::filterLambda()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodfilterLambda" id="filterLambda"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">filterLambda</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a438">438</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> filterLambda(
string
$function&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Filter based on a lambda function.
</strong></p>
<span class="description"><p>The function string will be executed as if it were the body of a  function. It is passed two arguments: <ul><li>$index: The index of the item.</li><li>$item: The current Element.</li></ul> If the function returns boolean FALSE, the item will be removed from  the list of elements. Otherwise it will be kept.</p><p>Example:  <ol><li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-str">'li'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfilterLambda">filterLambda</a><span class="src-sym">(</span><span class="src-str">'qp($item)-&gt;attr(&quot;id&quot;)&nbsp;==&nbsp;&quot;test&quot;'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></p><p>The above would filter down the list to only an item whose ID is  'text'.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$function:&nbsp;</span></td>
				<td>
				<span class="var-description"> Inline lambda function in a string.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilterCallback">QueryPath::filterCallback()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilter">QueryPath::filter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td>mapLambda()</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodmap">QueryPath::map()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodfind" id="find"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">find</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a199">199</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> find(
string
$selector&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Given a CSS Selector, find matching items.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> CSS 3 Selector</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilter">QueryPath::filter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodis">QueryPath::is()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />

<strong>Information Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Todo:</strong>&nbsp;&nbsp;</td><td>If a find() returns zero matches, then a subsequent find() will   also return zero matches, even if that find has a selector like :root.   The reason for this is that the <a href="../QueryPath/CSSParser/QueryPathCssEventHandler.html">QueryPathCssEventHandler</a> does   not set the root of the document tree if it cannot find any elements   from which to determine what the root is. The workaround is to use   <a href="../QueryPath/QueryPath.html#methodtop">top()</a> to select the root element again.</td>
  </tr>
</table>

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodget" id="get"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">get</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a278">278</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed get(
[int
$index = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get one or all elements from this object.
</strong></p>
<span class="description"><p>When called with no paramaters, this returns all objects wrapped by  the QueryPath. Typically, these are DOMElement objects (unless you have  used <a href="../QueryPath/QueryPath.html#methodmap">map()</a>, <a href="../QueryPath/QueryPath.html#methodxpath">xpath()</a>, or other methods that can select  non-elements).</p><p>When called with an index, it will return the item in the QueryPath with  that index number.</p><p>Calling this method does not change the QueryPath (e.g. it is  non-destructive).</p><p>You can use qp()-&gt;get() to iterate over all elements matched. You can  also iterate over qp() itself (QueryPath implementations must be Traversable).  In the later case, though, each item  will be wrapped in a QueryPath object. To learn more about iterating  in QueryPath, see examples/techniques.php.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$index:&nbsp;</span></td>
				<td>
				<span class="var-description"> If specified, then only this index value will be returned. If this    index is out of bounds, a NULL will be returned.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>If an index is passed, one element will be returned. If no index is    present, an array of all matches will be returned.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodeq">QueryPath::eq()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodhasClass" id="hasClass"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">hasClass</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1302">1302</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>boolean hasClass(
string
$class&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Returns TRUE if any of the elements in the QueryPath have the specified class.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$class:&nbsp;</span></td>
				<td>
				<span class="var-description"> The name of the class.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>TRUE if the class exists in one or more of the elements, FALSE otherwise.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodaddClass">QueryPath::addClass()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremoveClass">QueryPath::removeClass()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodhtml" id="html"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">html</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a994">994</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed html(
[string
$markup = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Set or get the markup for an element.
</strong></p>
<span class="description"><p>If $markup is set, then the giving markup will be injected into each  item in the set. All other children of that node will be deleted, and this  new code will be the only child or children. The markup MUST BE WELL FORMED.</p><p>If no markup is given, this will return a string representing the child  markup of the first node.</p><p><strong>Important:</strong> This differs from jQuery's html() function. This function  returns <em>the current node</em> and all of its children. jQuery returns only  the children. This means you do not need to do things like this:  <ol><li><div class="src-line"><span class="src-var">$qp</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodparent">parent</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodhtml">html</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
</ol>.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$markup:&nbsp;</span></td>
				<td>
				<span class="var-description"> The text to insert.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A string if no markup was passed, or a QueryPath if markup was passed.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcontents">QueryPath::contents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodtext">QueryPath::text()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodxml">QueryPath::xml()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodindex" id="index"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">index</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a493">493</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed index(
DOMElement
$subject&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get an item's index.
</strong></p>
<span class="description"><p>Given a DOMElement, get the index from the matches. This is the  converse of <a href="../QueryPath/QueryPath.html#methodget">get()</a>.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">DOMElement</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$subject:&nbsp;</span></td>
				<td>
				<span class="var-description"> The item to match.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The index as an integer (if found), or boolean FALSE. Since 0 is a   valid index, you should use strong equality (===) to test..</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodget">QueryPath::get()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodis">QueryPath::is()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodinsertAfter" id="insertAfter"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">insertAfter</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a629">629</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> insertAfter(
<a href="../QueryPath/QueryPath.html">QueryPath</a>
$dest&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Insert the contents of the current QueryPath after the nodes in the  destination QueryPath object.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$dest:&nbsp;</span></td>
				<td>
				<span class="var-description"> Destination object where the current elements will be deposited.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The present QueryPath, unaltered. Only the destination object is altered.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodinsertBefore">QueryPath::insertBefore()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodafter">QueryPath::after()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodinsertBefore" id="insertBefore"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">insertBefore</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a660">660</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> insertBefore(
<a href="../QueryPath/QueryPath.html">QueryPath</a>
$dest&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Insert the current elements into the destination document.
</strong></p>
<span class="description"><p>The items are inserted before each element in the given QueryPath document.  That is, they will be siblings with the current elements.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$dest:&nbsp;</span></td>
				<td>
				<span class="var-description"> Destination QueryPath document.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The current QueryPath object, unaltered. Only the destination QueryPath   object is altered.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappendTo">QueryPath::appendTo()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodinsertAfter">QueryPath::insertAfter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodbefore">QueryPath::before()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodis" id="is"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">is</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a393">393</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>boolean is(
string
$selector&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Given a selector, this checks to see if the current set has one or more matches.
</strong></p>
<span class="description"><p>Unlike jQuery's version, this supports full selectors (not just simple ones).</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> The selector to search for.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>TRUE if one or more elements match. FALSE if no match is found.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodget">QueryPath::get()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodeq">QueryPath::eq()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodmap" id="map"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">map</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a523">523</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> map(
callback
$callback&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Run a function on each item in a set.
</strong></p>
<span class="description"><p>The mapping callback can return anything. Whatever it returns will be  stored as a match in the set, though. This means that afer a map call,  there is no guarantee that the elements in the set will behave correctly  with other QueryPath functions.</p><p>Callback rules: <ul><li>If the callback returns NULL, the item will be removed from the array.</li><li>If the callback returns an array, the entire array will be stored in
   the results.</li><li>If the callback returns anything else, it will be appended to the array
   of matches.</li></ul></p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">callback</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$callback:&nbsp;</span></td>
				<td>
				<span class="var-description"> The function or callback to use. The callback will be passed two params: <ul><li>$index: The index position in the list of items wrapped by this object.</li><li>$item: The current item.</li></ul></span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object wrapping a list of whatever values were returned   by each run of the callback.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfind">QueryPath::find()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfilter">QueryPath::filter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodget">QueryPath::get()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodnext" id="next"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">next</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1118">1118</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> next(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get the next sibling of each element in the QueryPath.
</strong></p>
<span class="description"><p>If a selector is provided, the next matching sibling will be returned.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A CSS3 selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparent">QueryPath::parent()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparents">QueryPath::parents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodnextAll">QueryPath::nextAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcontents">QueryPath::contents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprev">QueryPath::prev()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodnextAll" id="nextAll"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">nextAll</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1137">1137</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> nextAll(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get all siblings after an element.
</strong></p>
<span class="description"><p>For each element in the QueryPath, get all siblings that appear after  it. If a selector is passed in, then only siblings that match the  selector will be included.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid CSS 3 selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object, now containing the matching siblings.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodsiblings">QueryPath::siblings()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodnext">QueryPath::next()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprevAll">QueryPath::prevAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodnot" id="not"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">not</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a476">476</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> not(
string
$selector&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Filter a list to contain only items that do NOT match.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A selector to use as a negation filter. If the filter is matched, the   element will be removed from the list.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with matching items filtered out.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfind">QueryPath::find()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodparent" id="parent"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">parent</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1190">1190</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> parent(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get the immediate parent of each element in the QueryPath.
</strong></p>
<span class="description"><p>If a selector is passed, this will return the nearest matching parent for  each element in the QueryPath.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid CSS3 selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object wrapping the matching parents.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparents">QueryPath::parents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodsiblings">QueryPath::siblings()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodparents" id="parents"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">parents</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1204">1204</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> parents(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get all ancestors of each element in the QueryPath.
</strong></p>
<span class="description"><p>If a selector is present, only matching ancestors will be retrieved.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid CSS 3 Selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object containing the matching ancestors.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodsiblings">QueryPath::siblings()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparent">QueryPath::parent()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodprepend" id="prepend"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">prepend</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a690">690</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> prepend(
mixed
$prependage&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Insert the given markup as the first child.
</strong></p>
<span class="description"><p>The markup will be inserted into each match in the set.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$prependage:&nbsp;</span></td>
				<td>
				<span class="var-description"> This can be either a string (the usual case), or a DOM Element.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprependTo">QueryPath::prependTo()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodafter">QueryPath::after()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodbefore">QueryPath::before()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodprependTo" id="prependTo"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">prependTo</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a709">709</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> prependTo(
<a href="../QueryPath/QueryPath.html">QueryPath</a>
$dest&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Take all nodes in the current object and prepend them to the children nodes of  each matched node in the passed-in QueryPath object.
</strong></p>
<span class="description"><p>This will iterate through each item in the current QueryPath object and  add each item to the beginning of the children of each element in the  passed-in QueryPath object.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"><a href="../QueryPath/QueryPath.html">QueryPath</a></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$dest:&nbsp;</span></td>
				<td>
				<span class="var-description"> The destination QueryPath object.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The original QueryPath, unmodified. NOT the destination QueryPath.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappendTo">QueryPath::appendTo()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodinsertBefore">QueryPath::insertBefore()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprepend">QueryPath::prepend()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodinsertAfter">QueryPath::insertAfter()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodprev" id="prev"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">prev</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1156">1156</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> prev(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get the next sibling before each element in the QueryPath.
</strong></p>
<span class="description"><p>For each element in the QueryPath, this retrieves the previous sibling  (if any). If a selector is supplied, it retrieves the first matching  sibling (if any is found).</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid CSS 3 selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object, now containing any previous siblings that have been   found.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprevAll">QueryPath::prevAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodsiblings">QueryPath::siblings()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodnext">QueryPath::next()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodprevAll" id="prevAll"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">prevAll</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1174">1174</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> prevAll(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get the previous siblings for each element in the QueryPath.
</strong></p>
<span class="description"><p>For each element in the QueryPath, get all previous siblings. If a  selector is provided, only matching siblings will be retrieved.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A valid CSS 3 selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object, now wrapping previous sibling elements.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcontents">QueryPath::contents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodsiblings">QueryPath::siblings()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprev">QueryPath::prev()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodnextAll">QueryPath::nextAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodremove" id="remove"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">remove</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a823">823</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> remove(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Remove any items from the list if they match the selector.
</strong></p>
<span class="description"><p>In other words, each item that matches the selector will be remove  from the DOM document. The returned QueryPath wraps the list of  removed elements.</p><p>If no selector is specified, this will remove all current matches from  the document.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> A CSS Selector.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The Query path wrapping a list of removed items.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremoveChildren">QueryPath::removeChildren()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodreplaceWith">QueryPath::replaceWith()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodreplaceAll">QueryPath::replaceAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodremoveAttr" id="removeAttr"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">removeAttr</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a379">379</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> removeAttr(
string
$name&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Remove the named attribute from all elements in the current QueryPath.
</strong></p>
<span class="description"><p>This will remove any attribute with the given name. It will do this on each  item currently wrapped by QueryPath.</p><p>As is the case in jQuery, this operation is not considered destructive.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$name:&nbsp;</span></td>
				<td>
				<span class="var-description"> Name of the parameter to remove.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with the same elements.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodattr">QueryPath::attr()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodremoveChildren" id="removeChildren"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">removeChildren</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a933">933</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> removeChildren(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Remove all child nodes.
</strong></p>
<span class="description"><p>This is equivalent to jQuery's empty() function. (However, empty() is a  PHP built-in, and cannot be used as a method name.)</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with the child nodes removed.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremove">QueryPath::remove()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodreplaceAll">QueryPath::replaceAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodreplaceWith">QueryPath::replaceWith()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodremoveClass" id="removeClass"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">removeClass</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1291">1291</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> removeClass(
string
$class&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Remove the named class from any element in the QueryPath that has it.
</strong></p>
<span class="description"><p>This may result in the entire class attribute being removed. If there  are other items in the class attribute, though, they will not be removed.</p><p>Example:  Consider this XML:  <ol><li><div class="src-line">&nbsp;&lt;<span class="src-id">element&nbsp;</span><span class="src-key">class</span>=<span class="src-str">&quot;first&nbsp;second&quot;</span>/&gt;</div></li>
</ol></p><p>Executing this fragment of code will remove only the 'first' class:  <ol><li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-id">document</span><span class="src-sym">,&nbsp;</span><span class="src-str">'element'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodremoveClass">removeClass</a><span class="src-sym">(</span><span class="src-str">'first'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></p><p>The resulting XML will be:  <ol><li><div class="src-line">&nbsp;&lt;<span class="src-id">element&nbsp;</span><span class="src-key">class</span>=<span class="src-str">&quot;second&quot;</span>/&gt;</div></li>
</ol></p><p>To remove the entire 'class' attribute, you should use {@see removeAttr()}.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$class:&nbsp;</span></td>
				<td>
				<span class="var-description"> The class name to remove.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The modified QueryPath object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodhasClass">QueryPath::hasClass()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodaddClass">QueryPath::addClass()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodattr">QueryPath::attr()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodreplaceAll" id="replaceAll"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">replaceAll</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a849">849</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> replaceAll(
string
$selector, 
$document&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>This replaces everything that matches the selector with the first value  in the current list.
</strong></p>
<span class="description"><p>This is the reverse of replaceWith.</p><p>Unlike jQuery, QueryPath cannot assume a default document. Consequently,  you must specify the intended destination document. If it is omitted, the  present document is assumed to be tthe document. However, that can result  in undefined behavior if the selector and the replacement are not sufficiently  distinct.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> The selector.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">DOMDocument</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$document:&nbsp;</span></td>
				<td>
				<span class="var-description"> The destination document.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath wrapping the modified document.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodreplaceWith">QueryPath::replaceWith()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremove">QueryPath::remove()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Deprecated:</strong>&nbsp;&nbsp;</td><td>Due to the fact that this is not a particularly friendly method,   and that it can be easily replicated using {@see replaceWith()}, it is to be   considered deprecated.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodreplaceWith" id="replaceWith"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">replaceWith</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a803">803</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> replaceWith(
mixed
$new&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Replace the existing element(s) in the list with a new one.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$new:&nbsp;</span></td>
				<td>
				<span class="var-description"> A DOMElement or XML in a string. This will replace all elements   currently wrapped in the QueryPath object.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object wrapping <strong>the items that were removed</strong>.   This remains consistent with the jQuery API.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodremove">QueryPath::remove()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodreplaceAll">QueryPath::replaceAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodappend">QueryPath::append()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodafter">QueryPath::after()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodbefore">QueryPath::before()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodprepend">QueryPath::prepend()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsiblings" id="siblings"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">siblings</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1100">1100</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> siblings(
[string
$selector = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get a list of siblings for elements currently wrapped by this object.
</strong></p>
<span class="description"><p>This will compile a list of every sibling of every element in the  current list of elements.</p><p>Note that if two siblings are present in the QueryPath object to begin with,  then both will be returned in the matched set, since they are siblings of each  other. In other words,if the matches contain a and b, and a and b are siblings of  each other, than running siblings will return a set that contains  both a and b.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$selector:&nbsp;</span></td>
				<td>
				<span class="var-description"> If the optional selector is provided, siblings will be filtered through   this expression.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath containing the matched siblings.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparents">QueryPath::parents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcontents">QueryPath::contents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodparent">QueryPath::parent()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodchildren">QueryPath::children()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsize" id="size"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">size</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a248">248</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>int size(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get the number of elements currently wrapped by this object.
</strong></p>
<span class="description"><p>Note that there is no length property on this object.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Number of items in the object.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodslice" id="slice"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">slice</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a537">537</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> slice(
integer
$start, [
$end = NULL], integer
$count&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Narrow the items in this object down to only a slice of the starting items.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">integer</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$start:&nbsp;</span></td>
				<td>
				<span class="var-description"> Where in the list of matches to begin the slice.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">integer</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$count:&nbsp;</span></td>
				<td>
				<span class="var-description"> The number of items to include in the slice. If nothing is specified, the   all remaining matches (from $start onward) will be included in the sliced   list.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$end:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="http://www.php.net/array_slice">array_slice()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodtag" id="tag"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">tag</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a785">785</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>string tag(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>The tag name of the first element in the list.
</strong></p>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The tag name of the first element in the list.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodtext" id="text"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">text</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1008">1008</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed text(
[string
$text = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Get or set the text contents of a node.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$text:&nbsp;</span></td>
				<td>
				<span class="var-description"> If this is not NULL, this value will be set as the text of the node. It   will replace any existing content.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath if $text is set, or the text content if no text   is passed in as a pram.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodcontents">QueryPath::contents()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodxml">QueryPath::xml()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodhtml">QueryPath::html()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodtop" id="top"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">top</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a238">238</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> top(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Select the root element of the document.
</strong></p>
<span class="description"><p>This sets the current match to the document's root element. For  practical purposes, this is the same as:  <ol><li><div class="src-line">&nbsp;<a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp</a><span class="src-sym">(</span><span class="src-var">$someDoc</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../QueryPath/QueryPath.html#methodfind">find</a><span class="src-sym">(</span><span class="src-str">':root'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol>  However, since it doesn't invoke a parser, it has less overhead. It also  works in cases where the QueryPath has been reduced to zero elements (a  case that is not handled by find(':root') because there is no element  whose root can be found).</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object, wrapping the root element (document element)   for the current document.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodval" id="val"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">val</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1076">1076</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed val(
[string
$value = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Set or get the value of an element's 'value' attribute.
</strong></p>
<span class="description"><p>The 'value' attribute is common in HTML form elements. This is a  convenience function for accessing the values. Since this is not  common  task on the server side, this method may be removed in future releases. (It  is currently provided for jQuery compatibility.)</p><p>If a value is provided in the params, then the value will be set for all  matches. If no params are given, then the value of the first matched element  will be returned. This may be NULL.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$value:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Returns a QueryPath if a string was passed in, and a string if no string   was passed in. In the later case, an error will produce NULL.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodattr">QueryPath::attr()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Deprecated:</strong>&nbsp;&nbsp;</td><td>Just use attr(). There's no reason to use this on the server.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodwrap" id="wrap"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">wrap</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a742">742</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> wrap(
mixed
$markup&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Wrap each element inside of the given markup.
</strong></p>
<span class="description"><p>Markup is usually a string, but it can also be a DOMNode, a document  fragment, a SimpleXMLElement, or another QueryPath object (in which case  the first item in the list will be used.)</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$markup:&nbsp;</span></td>
				<td>
				<span class="var-description"> Markup that will wrap each element in the current list.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with the wrapping changes made.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodwrapAll">QueryPath::wrapAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodwrapInner">QueryPath::wrapInner()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodwrapAll" id="wrapAll"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">wrapAll</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a763">763</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> wrapAll(
string
$markup&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Wrap all elements inside of the given markup.
</strong></p>
<span class="description"><p>So all elements will be grouped together under this single marked up  item. This works by first determining the parent element of the first item  in the list. It then moves all of the matching elements under the wrapper  and inserts the wrapper where that first element was found. (This is in  accordance with the way jQuery works.)</p><p>Markup is usually XML in a string, but it can also be a DOMNode, a document  fragment, a SimpleXMLElement, or another QueryPath object (in which case  the first item in the list will be used.)</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$markup:&nbsp;</span></td>
				<td>
				<span class="var-description"> Markup that will wrap all elements in the current list.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with the wrapping changes made.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodwrap">QueryPath::wrap()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodwrapInner">QueryPath::wrapInner()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodwrapInner" id="wrapInner"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">wrapInner</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a778">778</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> wrapInner(

$element, string
$markup&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Wrap the child elements of each item in the list with the given markup.
</strong></p>
<span class="description"><p>Markup is usually a string, but it can also be a DOMNode, a document  fragment, a SimpleXMLElement, or another QueryPath object (in which case  the first item in the list will be used.)</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$markup:&nbsp;</span></td>
				<td>
				<span class="var-description"> Markup that will wrap children of each element in the current list.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$element:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object with the wrapping changes made.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodwrap">QueryPath::wrap()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodwrapAll">QueryPath::wrapAll()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodwriteHTML" id="writeHTML"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">writeHTML</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1055">1055</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> writeHTML(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Send the HTML to the client.
</strong></p>
<span class="description"><p>Write the document to stdout (usually the client).</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object, unmodified.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodhtml">QueryPath::html()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodwriteXML" id="writeXML"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">writeXML</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1045">1045</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> writeXML(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Send the XML document to the client.
</strong></p>
<span class="description"><p>Write the document to stdout (usually the client).</p><p>This prints the entire document.</p></span>
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The QueryPath object, unmodified.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodxml">QueryPath::xml()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodxml" id="xml"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">xml</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a1032">1032</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>mixed xml(
[string
$markup = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Set or get the XML markup for an element or elements.
</strong></p>
<span class="description"><p>Like <a href="../QueryPath/QueryPath.html#methodhtml">html()</a>, this functions in both a setter and a getter mode.</p><p>In setter mode, the string passed in will be parsed and then appended to the  elements wrapped by this QueryPath object.When in setter mode, this parses  the XML using the DOMFragment parser. For that reason, an XML declaration  is not necessary.</p><p>In getter mode, the first element wrapped by this QueryPath object will be  converted to an XML string and returned.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$markup:&nbsp;</span></td>
				<td>
				<span class="var-description"> A string containing XML data.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>If markup is passed in, a QueryPath is returned. If no markup is passed   in, XML representing the first matched element is returned.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td>content()</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodtext">QueryPath::text()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodhtml">QueryPath::html()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodxpath" id="xpath"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">xpath</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a219">219</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code><a href="../QueryPath/QueryPath.html">QueryPath</a> xpath(
string
$query&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Execute an XPath query and store the results in the QueryPath.
</strong></p>
<span class="description"><p>Most methods in this class support CSS 3 Selectors. Sometimes, though,  XPath provides a finer-grained query language. Use this to execute  XPath queries.</p><p>Beware, though. QueryPath works best on DOM Elements, but an XPath  query can return other nodes, strings, and values. These may not work with  other QueryPath functions (though you will be able to access the  values with <a href="../QueryPath/QueryPath.html#methodget">get()</a>).</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$query:&nbsp;</span></td>
				<td>
				<span class="var-description"> An XPath query.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>A QueryPath object wrapping the results of the query.</td>
  </tr>
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td><a href="../QueryPath/QueryPath.html#methodfind">QueryPath::find()</a></td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
										| <a href="#sec-const-summary">Constants Summary</a> | <span class="disabled">Constants Detail</span>
																		| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
									</div>
		<div class="info-box-body">
			<a name="constHTML_STUB" id="HTML_STUB"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-name">HTML_STUB</span>
			 = <span class="var-default"> '&lt;?xml version=&quot;1.0&quot;?&gt;<br />  &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />  &lt;head&gt;<br />  	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;<br />  	&lt;title&gt;Untitled&lt;/title&gt;<br />  &lt;/head&gt;<br />  &lt;body&gt;&lt;/body&gt;<br />  &lt;/html&gt;'</span>
			<span class="smalllinenumber">[line <a href="../__filesource/fsource_QueryPath__srcQueryPathQueryPath.php.html#a174">174</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>This is a stub HTML document.
</strong></p>
<span class="description"><p>It can be passed into <a href="../QueryPath/_src---QueryPath---QueryPath.php.html#functionqp">qp()</a> to begin a new basic HTML document.</p></span>	

	<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

        <div class="credit">
		    <hr class="separator" />
		    Documentation generated on Thu, 19 Mar 2009 18:01:18 -0500 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>